import request from '@/utils/request'

// 查询基础体能考核列表
export function listPhysicalFitness(query) {
  return request({
    url: '/firemen/physicalFitness/list',
    method: 'get',
    params: query
  })
}

// 查询基础体能考核详细
export function getPhysicalFitness(id) {
  return request({
    url: '/firemen/physicalFitness/' + id,
    method: 'get'
  })
}

// 新增基础体能考核
export function addPhysicalFitness(data) {
  return request({
    url: '/firemen/physicalFitness',
    method: 'post',
    data: data
  })
}
// 新增应用体能

export function addPhysicalFitnessApplied(data) {
  return request({
    url: '/firemen/physicalFitness/addApplied',
    method: 'post',
    data: data
  })
}

// 修改基础体能考核
export function updatePhysicalFitness(data) {
  return request({
    url: '/firemen/physicalFitness',
    method: 'put',
    data: data
  })
}
// 修改基础体能考核
export function updatePhysicalFitnessApplied(data) {
  return request({
    url: '/firemen/physicalFitness/editApplied',
    method: 'put',
    data: data
  })
}

// 删除基础体能考核
export function delPhysicalFitness(id) {
  return request({
    url: '/firemen/physicalFitness/' + id,
    method: 'delete'
  })
}
// 测试接口
export function test() {
  return request({
    url: '/firemen/physicalFitness/test',
    method: 'get',
  })
}
